home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.spb.su!demos!pluscom!usenet
- From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
- Subject: Re: write()
- X-Newsreader: Forte Free Agent 1.0.82
- Sender: usenet@news.rinet.ru (Backup pseudo-user)
- Nntp-Posting-Host: albea.ugatu.ac.ru
- Organization: Albea
- Message-ID: <DMz4Dp.C6t@news.rinet.ru>
- References: <4g0u21$4b3@braddon.its.utas.edu.au>
- Date: Sun, 18 Feb 1996 13:35:41 GMT
-
- DNA wrote:
-
- >is it possible to do the folowing?...
-
- >(semi pseudo-code...)
-
- >#include <fstream.h>
-
- >ofstream out("somefile",ios::bin);
-
- >long BIG(64000);
-
- >char bigarray[BIG];
-
- >out.write(bigarray,BIG); // ???
-
- >the reason is that I want to write the contents of an array
- >which is ~64k big to disk and the program doesn't really appreciate
- >it.
-
- >TIA
-
- In declaration of method "write" second parameter has type "int",
- therefore if compiler is 16-bit, then maximum lengh of buffer can be
- 32767.
-
-
-
-
-